package cn.newhopedairy.order.api.assembly;

import cn.newhopedairy.order.infrastructure.db.po.MainOrderPo;
import cn.newhopedairy.order.response.MainOrderResp;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author Neo.Li
 * @date 2020-09-0918:19
 */
@Mapper(componentModel = "spring")
public interface MainOrderRespAssembly {
    /**
     * @param mainOrderPo
     * @return
     */
    MainOrderResp toResp(MainOrderPo mainOrderPo);

    List<MainOrderResp> ToRespList(List<MainOrderPo> mainOrderPos);
}
